package com.micmac.main.events
{
	import flash.events.Event;
	/*
	
	Author : Roy Raul.
	
	Component : SplashViewEvent.             
	
	Version History         : 0.1 Date Jul-20-2011
	
	Current Version         : 0.1 Date Jul-20-2011
	
	Build Date              : Jul-20-2011
	
	*/
	public class SplashViewEvent extends Event
	{
		public static const LOADING_PROGRESS:String 	= 'loadingProgress';
		public static const LOADING_ERROR:String 		= 'loadingERROR';
		
		public function SplashViewEvent(type:String, value:int = 0, isErr:Boolean = false)
		{
			super(type);
			
			_loadingPercentage 	= value;
			_isError 		= isErr;
			
		}
		
		private var _loadingPercentage:Number;
		
		public function get loadingPercentage():Number
		{
			return _loadingPercentage;
		}
		
		private var _isError:Boolean = false;
		
		public function get isError():Boolean
		{
			return _isError;
		}
		
		override public function clone():Event
		{
			return new SplashViewEvent(type, _loadingPercentage, _isError);
		}
	}
}